package com.tdcode.ch1;

/**
 * @className: Rental
 * @description: 租赁
 * @author: cyd
 * @date: 2021/11/29 下午5:51
 **/
public class Rental {
    /** 影片 */
    private Movie _movie;
    /** 租赁时长 */
    private int _daysRented;

    public Rental(Movie _movie, int _daysRented) {
        this._movie = _movie;
        this._daysRented = _daysRented;
    }

    public Movie getMovie() {
        return _movie;
    }

    public int getDaysRented() {
        return _daysRented;
    }


    double getCharge(){
        return _movie.getCharge(_daysRented);
    }

    int getFrequentRenterPoints(){
        return _movie.getFrequentRenterPoints(_daysRented);
    }
}
